import axios from 'axios'

export default class  {
   
    //添加进度款申请信息
    Addlaber(laber,laberID,projectID,providerID,bankID){
        return axios.get(`http://localhost/smj_laber_apply`,{
            params:{
                'apply_date':laber.apply_date,
                'payment_name':laber.payment_name ,
                'type':laber.type,
                'ctr_id':laberID,
                'p_id':projectID,
                'company_id':providerID,
                'contract_amount':laber.contract_amount,
                'penalty':laber.penalty,
                'withhold':laber.withhold,
                'settle_type':laber.settle_type,
                'bank_id':bankID,
                'agree_amount':laber.agree_amount,
                'handler_id':laber.handler_id,
                'agree_upper':laber.agree_upper,
                'attach_ids':laber.attach_ids,
                'settle_comment':laber.settle_comment,
            }
        })
    }

    //提交审批
    FlowLaberApply(laber){
        return axios.post(`http://localhost/smj_laber_apply/Flow_laberapply`,laber)
    }

    //查看劳务付款列表
    listLaberApply(params){
        return axios.get(`http://localhost/smj_laber_apply/listLaberApply`,{
            params:params
        })
    }

    //查看审批流程
    getfromaudit(id){
        return axios.get(`http://localhost/smj_laber_apply/getfromaudit`,{
            params:{
                'id':id
            }
        })
    }


}